//
//  MyAdviceViewController.m
//  SchoolProduct
//
//  Created by 蒋松涵 on 16/9/5.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "MyAdviceViewController.h"

@interface MyAdviceViewController ()

@end

@implementation MyAdviceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:232/255.0 green:234/255.0 blue:233/255.0 alpha:1];
    
    self.title = @"我的建议";
    
    
    [self init_View1];
    [self init_View2];
    [self init_Button];
}

#pragma mark - 意见
-(void)init_View1
{
    UIView * view1 = [[UIView alloc]initWithFrame:CGRectMake(0, 75, ScreenWidth, 50)];
    view1.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:view1];
}

#pragma mark - 建议
-(void)init_View2
{
    UIView * view2 = [[UIView alloc]initWithFrame:CGRectMake(0, 140, ScreenWidth, 150)];
    view2.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:view2];
}

#pragma mark - 提交
-(void)init_Button
{
    UIButton * SubmitButton = [UIButton buttonWithType:UIButtonTypeCustom];
    SubmitButton.frame = CGRectMake(10, 350, ScreenWidth - 20, 40);
    SubmitButton.backgroundColor = [UIColor colorWithRed:246/255.0 green:167/255.0 blue:81/255.0 alpha:1];
    [SubmitButton setTitle:@"提交" forState:UIControlStateNormal];
    [SubmitButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [SubmitButton addTarget:self action:@selector(submitbtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:SubmitButton];
}

-(void)submitbtnClick
{
    NSLog(@"----提交了----");
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
